package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.dto.DeviceFullInfo;
import com.zb.dto.DeviceLocation;
import com.zb.entity.TbGpsModel;

import java.util.List;
import java.util.Map;


/**
 * @ClassName TbGpsService
 * @Description 服务接口
 * @Author xm
 * @Date 2024/08/15 08:54
 **/
public interface TbGpsService extends IService<TbGpsModel> {

    /**
     * 解析gps报文数据
     *
     * @param topic
     * @param payloadMap
     * @return
     */
    DeviceLocation analysis(String topic, Map<String, Object> payloadMap);


    /**
     * 根据设备查询完整的信息
     * @param lat
     * @param lon
     * @param distance
     * @return
     */
    List<DeviceFullInfo> getDeviceFullInfo(Double lat, Double lon, Integer distance);


}
